﻿using FDStudio.Core.Entities;

namespace FDStudio.Core.Repositories
{
    /*
     CreatedOn: 2018-01-25
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 仓储
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IRepository<T> : IRepository where T : class, IEntity
    {
        IRepositoryContext Context { get; }

        /// <summary>
        /// 获取上下文
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        C RepositoryContext<C>() where C : IRepositoryContext;
    }

    public interface IRepository
    {

    }
}
